#ifndef _CONFIG_H
#define _CONFIG_H

#define CEDULE_MAX_USERNAME_LEN		6
#define CEDULE_MAX_MESSAGES			10
#define CEDULE_MAX_SUBJECT_LEN		20
#define CEDULE_MAX_BODY_LEN			126

typedef struct _Config_t {
	unsigned short port;
	/* user table */
	char ** users;
	/* be verbose (for debugging purpose) */
	int verbose;
	/* run in background */
	int detach;
} Config_t;


/* config.c */
Config_t *config_create(void);
void config_destroy(Config_t *config);
int config_is_valid(Config_t *config);

#endif
